const log4js = require("log4js");
const config = require("./logConfig.json");
log4js.configure(config);
// const log = log4js.getLogger()
export const log = {
  info:(log:string|Object)=>log4js.getLogger().info(log),
  warn:(log:string|Object)=>log4js.getLogger().warn(log),
  error:(log:string|object)=>log4js.getLogger().error(log),
};

export default log;